package com.frxuexi.shop.intent

import com.frxuexi.lib_base.entity.CreateOrderReqBean
import com.frxuexi.lib_base.entity.PreOrderReqBean
import com.frxuexi.lib_base.mvi.IUiIntent
import com.frxuexi.lib_base.room.OrderEntity

sealed class CartIntent:IUiIntent {
    data class getCarts(val page:Int):CartIntent()

    data class updateCart(val id:Int,val num:Int):CartIntent()

    data class deleteCart(val list: List<Int>):CartIntent()

    data class preOrder(val bean: PreOrderReqBean):CartIntent()

    data class getPreOrder(val carNo:String):CartIntent()

    data class createOrder(val bean: CreateOrderReqBean):CartIntent()

    data class addOrder(val orderEntity: OrderEntity):CartIntent()
}